package funjava;

/**
 * Created by judasnow on 5/23/16.
 */

class Employee {}
class Manager extends Employee {}

public class C6_test {
    public static void process(Employee[] staff) {

    }
    public static void main(String[] args) {
        Manager[] managers = new Manager[] {};

        // 数组的协变性
        process(managers);

        // 相反的是 这样的操作就不会被允许
        // ArrayList<Employee> _employees = new ArrayList <Employee> ();
        // ArrayList<Manager> _managers = _employees;
    }
}
